import Vue from 'vue'
import Router from 'vue-router'
import dashboard from '@/pages/dashboard'

Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'dashboard',
			component: dashboard
		},
		{
			path: '/tag',
			name: 'tag',
			component: () => import('./pages/tag')
		},
		{
			path: '/tagRelationship',
			name: 'tagRelationship',
			component: () => import('./pages/tag')
		},
		{
			path: '/goods',
			name: 'goods',
			component: () => import('./pages/goods')
		},
		{
			path:'/backendProductImage',
			name:'backendProductImage',
			component:() => import('./pages/goods')
		},
		{
			path:'/talkHistoryList',
			name:'talkHistoryList',
			component:() => import('./pages/goods')
		},
		{
			path: '/userLoginInfoList',
			name: 'userLoginInfoList',
			component: () => import('./pages/userAction')
		},
		{
			path: '/backendUserAction',
			name: 'backendUserAction',
			component: () => import('./pages/userAction')
		},
		{
			path: '/sysUserRoleList',
			name: 'sysUserRoleList',
			component: () => import('./pages/userAction')
		},
		{
			path: '/test',
			name: 'test',
			component: () => import('./pages/test')
		},
		{
			path: '/sysUserActionList',
			name: 'sysUserActionList',
			component: () => import('./pages/adminUser')
		},
		{
			path: '/sysUserList',
			name: 'sysUserList',
			component: () => import('./pages/adminUser')
		},
		{
			path: '/sysMenuList',
			name: 'sysMenuList',
			component: () => import('./pages/adminUser')
		},
		{
			path: '/sysRoleList',
			name: 'sysRoleList',
			component: () => import('./pages/adminUser')
		},
		{
			path: '/participleList',
			name: 'participleList',
			component: () => import('./pages/wordList')
		},
		{
			path: '/tagHomonymList',
			name: 'tagHomonymList',
			component: () => import('./pages/wordList')
		},
		{
			path: '/stopWordList',
			name: 'stopWordList',
			component: () => import('./pages/wordList')
		},
		{
			path:"/sysAdInfoList",
			name:'sysAdInfoList',
			component:() => import('./pages/goods')
		},
		{
			path:"/sysAdList",
			name:'sysAdList',
			component:() => import('./pages/goods')
		},
		{
			path:"/bigScreen",
			name:'bigScreen',
			component:() => import('./pages/goods')
		},
		{
			path:"/userRobotList",
			name:"userRobotList",
			component:() => import('./pages/goods')
		},
		{
			path:"/topLevelCateList",
			name:"topLevelCateList",
			component:() => import('./pages/topLevelCate'),
			children:[
				{
					path:"/topLevelCateList/subMenuList",
					name:"subMenuList",
					component:() => import('./pages/topLevelCate')
				}
			]
		},
		{
			path:'/sysRoleMenuList',
			name:'sysRoleMenuList',
			component:() => import('./pages/goods')
		},
		{
			path:'/knowledgeList',
			name:'knowledgeList',
			component:() => import('./pages/goods')
		},
		{
			path:'/productModelList',
			name:'productModelList',
			component:() => import('./pages/productModel'),
			children:[
				{
					path:"/productModelList/productModelDetailList",
					name:"productModelDetailList",
					component:() => import('./pages/productModel')
				}
			]
		}
	]
})
